package com.example.bookmall.entity.address;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("address")

public class Address {
    @TableId(type = IdType.AUTO)
    private Integer addressId;

    private Integer userId;

    //收货人
    private String consignee;

    private String province;

    private String city;

    private String district;

    //详细地址
    private String detail;

    private String phone;

    //是否为默认地址（0 = 否，1 = 是）默认为0
    @TableField("is_default")
    private Integer isDefault;
    //更新时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime updateTime;


    private Integer deleted; // 逻辑删除字段
}